
import { Outlet,useLocation  } from "react-router-dom";
import { Layout } from "antd";
import React, { createContext } from 'react';
import LayoutMenu from "./components/Menu";
import LayoutHeader from "./components/Header";
import LayoutFooter from "./components/Footer";
import "./index.less";
const LayoutIndex = (props: any) => {
	const hideMenuRoutes = ["/home/information"];
	const location = useLocation();
	const shouldHideMenu = hideMenuRoutes.includes(location.pathname);
    const { Content } = Layout;
	return (
		<section className="container">
			<Layout>
				<LayoutHeader></LayoutHeader>
                <div className="content">
				{!shouldHideMenu && <LayoutMenu></LayoutMenu>}
				<Content>
					<Outlet></Outlet>
				</Content>
                </div>
				<LayoutFooter></LayoutFooter>
			</Layout>
		
		</section>
	);
};



export default LayoutIndex;
